package group6renderer.renderernode;

import group6renderer.Display;
import group6renderer.Visitor;

/**
*
* @author Yiannis
*/


public class ListNode extends TreeNode {
    
    
    
    public ListNode(String name)
    {
    	this.name=name;
    }
    @Override
    public boolean isLeaf()
    {
	return false;
    }

    @Override
    public boolean hasClosing()
    {
    	return true;
    }

	public void accept(Visitor theVisitor) {
		theVisitor.visit(this);
	} 

    public void drawNode(Display disp)
    {
    	
    }
    
    public TreeNode copy()
    {
	return new ListNode(name);
    }
    
   
    
}